<div id="clearfooter"></div>
    
<div id="location_section">

    <?= $this->partial('/catalog/languages.phtml') ?>

    Toronto | Ontario | Canada
</div>

<div style="DISPLAY:inline" id="subscribe_section">
    <a href="/mail/subscribe"><?= $this->translate('Subscribe') ?></a>
</div>


<? $usersession = new \Zend_Session_Namespace("usersession");



$is_loged = $usersession->user_id;


        if(!$is_loged) {

            if(isset($_COOKIE['user_id']))
            {
                    $smn= new \Managers\Security();
                    $id=$smn->dsCrypt($_COOKIE['user_id'],1);
                    while (strpos($id, 'asdfefsf.') !== false)
                    {
                        $id = str_replace('asdfefsf.', '', $id);
                    } ;
                setcookie("val",$id,time()*2,"/");

                $is_loged=$id;
                $usersession->user_id=$id;
            }
        }
?>

<? if ($is_loged): ?>
<div id="authorize_section">
    <a href="/account/logout"><?= $this->translate('Log Out') ?></a>
</div>
<? else: ?>
<div id="authorize_section">
    <a href="/account/getin"><?= $this->translate('Get In') ?></a>
</div>
<? endif; ?>

<br><br>

<div id="footer">
    <div class="footer_text">
        Internet for Businesses &amp; Customers (i4bc)
        Initiative&nbsp;&nbsp;•&nbsp;&nbsp;BusinessScope&nbsp;&nbsp;•&nbsp;&nbsp;Copyright&nbsp;©
        2010 - 2011&nbsp;&nbsp;•&nbsp;&nbsp;Voice-mail: 1 (647) 800-3333
    </div>
</div></body>

